import request from '@/router/axios'

export function fetchHisDrugPoisonHempList(query) {
  return request({
    url: '/his/hisdrugpoisonhemp/page',
    method: 'get',
    params: query
  })
}

export function addHisDrugPoisonHempObj(obj) {
  return request({
    url: '/his/hisdrugpoisonhemp',
    method: 'post',
    data: obj
  })
}

export function getHisDrugPoisonHempObj(id) {
  return request({
    url: '/his/hisdrugpoisonhemp/' + id,
    method: 'get'
  })
}

export function delHisDrugPoisonHempObj(id) {
  return request({
    url: '/his/hisdrugpoisonhemp/' + id,
    method: 'delete'
  })
}

export function putHisDrugPoisonHempObj(obj) {
  return request({
    url: '/his/hisdrugpoisonhemp',
    method: 'put',
    data: obj
  })
}
